//
//  ZWLBaseModel.m
//  ZWLMusic
//
//  Created by dllo on 16/1/6.
//  Copyright © 2016年 ZKJ. All rights reserved.
//

#import "ZWLBaseModel.h"

@implementation ZWLBaseModel

- (instancetype)initWithDataSource:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.nId = value;
    }
}

- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}

@end
